package com.itbaizhan.controller;

import com.itbaizhan.service.IPaymentService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author spf
 * @date 2024/3/10
 * @time 20:12
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @DubboReference(mock = "com.itbaizhan.service.PaymentFallback")
    private IPaymentService iPaymentService;

    @GetMapping("/index")
    public String index(){
        return iPaymentService.index();
    }

}
